﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JeuDeDames_v1._02
{
    [Serializable]
    public class Dame : Piece
    {
        #region Constructeurs
        public Dame(int pos, Joueur j, bool adv = false)
        {
            this.pos = pos;
            this.j = j;
            this.pas = 10;
            this.adv = adv;
        } 
        #endregion

        #region Méthodes
        public override string ToString()
        {
            if (j.couleur == BLANC)
            {
                if (adv)
                    return "O";
                return "X";
            }
            else if (j.couleur == NOIR)
            {
                if (adv)
                    return "X";
                return "O";
            }
            else
                return "";
        } 
        #endregion
    }
}
